package com.bougaga.opensource.scheduler.web.autoconfigure;

import com.bougaga.opensource.scheduler.web.config.SecurityConfig;
import com.bougaga.opensource.scheduler.web.config.WebConfig;
import com.bougaga.opensource.scheduler.web.controller.HealthController;
import com.bougaga.opensource.scheduler.web.controller.LoginController;
import com.bougaga.opensource.scheduler.web.controller.WebController;
import com.bougaga.opensource.scheduler.web.controller.TaskController;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * Web模块自动配置类
 * 
 * @author bougaga
 * @since 1.0.0
 */
@Configuration
@ConditionalOnProperty(prefix = "bou.scheduler.web", name = "enabled", havingValue = "true", matchIfMissing = true)
@Import({
    SecurityConfig.class,
    WebConfig.class,
    WebController.class,
    LoginController.class,
    HealthController.class,
    TaskController.class
})
public class WebAutoConfiguration {
    // 这个类负责导入所有Web相关的配置和组件
}
